
 <!-- 信息输入对话框 -->
<style>
.inputDlg {
	position: absolute;
	top: 30%;
	left: 30%;
	z-index: 10;
	background: rgb(41, 111, 111);
	height: auto;
	width: 500px;
	border: 2px solid rgba(255, 255, 255, 0.59);
	border-radius: 5px;
	display: none;
}

.inputDlg .title {
	text-align: center;
	color: white;
	line-height: 30px;
	border: 1px solid #bbbbbb;
	border-radius: 5px 5px 0px 0px;
	box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.53);
	background-image: linear-gradient(to top, rgba(255, 255, 255, 0.41),
		rgba(66, 64, 64, 0.54), rgba(252, 255, 255, 0.14));
}

.inputDlg .content {
	padding: 5px;
}

.inputDlg .content #inputarea {
	height: 220px;
	font-size: 24px;
	width: 483px;
	padding: 3px;
}

.inputDlg .btnarea {
    padding: 0 20% 0px 20%;
	line-height: 30px;
	color: white;
    height: 30px;
    margin-top: 5px;
}

.inputDlg .btnarea .btn {
	height: 20px;
	line-height: 20px;
	width: 50px;
}
</style>
<script type="text/javascript">
 
$(function(){ 
	
	function close(){
	 
       $("#inputDlg").slideUp() 
    }

  $("#inputDlg #btn_cancel").on("click",function(){ close(); })

  $("#inputDlg #btn_ok").on("click",function(){ 
		var tar=$(".mor_pic_item.active");
		if(tar.length>0){
			var _puid=tar.attr("puid");
			var _fname=tar.find("img").attr("alt");
			var _pdesc=$("#inputDlg #inputarea").val();
		//	window.log(puid,fname,pdesc);
			 $.ajax({
		            type:"POST",
		    		url : CONETXT_PATH + "/equip/setpdesc",
		            data: {puid:_puid,fname:_fname,pdesc:_pdesc},
		            success:function(msg){
		            	showTipInfo(msg);
		            	var uname=$(".h_i_item.uname span").html();
		            	var date=new Date();;
		            	var tdes=uname+"("+date.format('yyyy-M-d hh:mm:ss')+"):"
		            	tar.find("#picdesc").append(tdes+_pdesc+'<br>');
		            	$("#big_area #picdesc").append(tdes+_pdesc+'<br>');
		            },
		            error:function(XMLHttpRequest, textStatus, thrownError){}
		        });
			close();	
		}else{
			showTipInfo({success:false,desc:'没有选择图片'})
		}
	
	 }); 
})

 
</script>


<div id="inputDlg" class="inputDlg  colorable">
	<div class="title" style="">
		<span>额外信息输入</span>
	</div>
	<div class="content">
		<textarea id="inputarea"></textarea>
		<div class="btnarea">
			<a id="btn_ok" class="btn" style="float: left;">确认</a> <a
				id="btn_cancel" class="btn" style="float: right;">取消</a>
		</div>
	</div>
</div>